//
//  PurseViewController.m
//  jang
//
//  Created by lee han on 07/06/2017.
//  Copyright © 2017 lee han. All rights reserved.
//

#import "PurseViewController.h"
#import "CRUserData.h"

@interface PurseViewController ()

@end

@implementation PurseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.navigationItem.backBarButtonItem setTitle:@""];
    
    _mInputMoney.delegate = self;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    _mTextMoney.text = [NSString stringWithFormat:@"%ld元", [CRUserData sharedInstance].m_money];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)onClickWeChat:(id)sender {
}
- (IBAction)onClickAliPay:(id)sender {
}
- (IBAction)onClickDetail:(id)sender {
}

#pragma mark UITextFieldDelegate
- (BOOL)textFieldShouldReturn:(UITextField *)textField{
    [textField resignFirstResponder];
    return YES;
}
//end UITextFieldDelegate
@end
